<template>
	<view>
<!-- 		<view class="brand">
			<image class="brand_img" src="https://tjyzsz.oss-cn-beijing.aliyuncs.com/ohter/static/brand.jpg"></image>
		</view> -->
		<view class="brand_within">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time: 3,
				content: "",
			}
		},
		onLoad() {
			this.getConfig();
		},
		methods: {

			getConfig() {
				uni.$u.http.post("/getConfig", {
					id: 1
				}).then((res) => {
					if (res.code == 200) {
						console.log(res);
						this.content = res.data.privacy;
					}
				})
			},

			loading() {
				const interval = setInterval(() => {
					//currentProgress += 10; // 每次增加10%
					if (this.time > 0) {
						this.time = this.time - 1;
					} else {
						clearInterval(interval);
						this.showTime = false;
					}
				}, 1000);
			}
		}
	}
</script>

<style lang="scss">
	.page {
		position: fixed;
		background: url(https://tjyzsz.oss-cn-beijing.aliyuncs.com/ohter/static/page.jpg) no-repeat center center;
		background-size: cover;
		width: 100vw;
		height: 100vh;
		z-index: 9999;

		span {
			color: #ffffff;
			display: inline-block;
			float: right;
			position: fixed;
			right: 40rpx;
			top: 40rpx;
			border: 2rpx solid #fff;
			border-radius: 50%;
			width: 40rpx;
			height: 40rpx;
			text-align: center;
			line-height: 40rpx;
		}

		p {
			text-align: center;
			color: #ffffff;
			line-height: 60rpx;
			font-size: 24rpx;
			padding-top: 20vh;
		}

		.two {
			width: 330rpx;
			height: 44rpx;
			margin: 36vh auto 0;
			display: block;

			b {
				font-weight: bold;
			}
		}
	}

	.brand {
		margin: 20rpx;

		.brand_img {
			width: 100%;
			height: 460rpx;
			border-radius: 16rpx;
		}
	}

	.brand_within {
		width: 100%;

		img {
			width: 100%;
		}

		h2 {
			font-size: 36rpx;
			line-height: 60rpx;
			margin-top: 40rpx;
			font-weight: bold;
		}
	}
</style>